
<style>
.topTipInfo {
	position: fixed;
    top: 10px;
    left: 45%;
    width: 300px;
    z-index: 10;
    background: rgba(51, 51, 51, 0.39);
    /* border: 1px solid #999; */
    color: white;
    border-radius: 5px;
    box-shadow: 0px 3px 3px black;
    text-align: center;
    display: none;  
    padding: 5px;
}

.topTipInfo .t_title {
	border-bottom: 1px solid rgba(153, 153, 153, 0.24);
	box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
	line-height: 25px;
}

.topTipInfo .t_content {
	line-height: 25px;
}
/*
数据加载动画
*/
.maskInfo {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:10;
    background:rgba(0,0,0,0.3);
   display: flex; 
   justify-content: center; 
   align-items: center; 
   display: none; 
    
}
.maskInfo .content{


    margin: 0 auto;
    background: rgba(0,0,0,0.2);
    
    height: 150px;
    width: 300px;
    font-size: 24px;
    line-height: 150px;
    text-align: center;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.46) 1px 5px 5px;
}
/**
 加载动画
*/
#preloader5{
  
    width:30px;
    height:30px;
    background:#3498db;
    border-radius:50px;
    animation: preloader_5 1.5s infinite linear;
    position: relative;
    top: 30px;
    left: 140px;
}
#preloader5:after{
    position:absolute;
    width:50px;
    height:50px;
    border-top:10px solid #9b59b6;
    border-bottom:10px solid #9b59b6;
    border-left:10px solid transparent;
    border-right:10px solid transparent;
    border-radius:50px;
    content:'';
    top:-20px;
    left:-20px;
    animation: preloader_5_after 1.5s infinite linear;
}
@keyframes preloader_5 {
    0% {transform: rotate(0deg);}
    50% {transform: rotate(180deg);background:#2ecc71;}
    100% {transform: rotate(360deg);}
}
@keyframes preloader_5_after {
    0% {border-top:10px solid #9b59b6;border-bottom:10px solid #9b59b6;}
    50% {border-top:10px solid #3498db;border-bottom:10px solid #3498db;}
    100% {border-top:10px solid #9b59b6;border-bottom:10px solid #9b59b6;}
}

</style>


<div class="topTipInfo colorable">
	<div class="t_title">提示信息</div>
	<div class="t_content">操作成功</div>
	<div class="t_des"></div>
</div>


<div  class="maskInfo">

    <div class="content"><div id="preloader5"></div> <div>正在进行,请稍等</div></div>

</div>


<script>
	//  $(".topTipInfo").appendTo("body");
	//func 执行完成，success=false执行
	//dfunc 延时执行，等待对话框消失再执行
	function showTipInfo(msg, func, dfunc) {
		$(".maskInfo").hide();
		var desc = "操作失败！";
		if (msg.success == true) {
			desc = "操作成功！";
			if (func)
				func();
		}

		$(".topTipInfo .t_content").html(desc);

		$(".topTipInfo .t_des").html(msg.desc);

		$(".topTipInfo").slideDown();
		setTimeout(function() {
			$(".topTipInfo").slideUp();
			$(".topTipInfo .t_des").html("");
			if (dfunc)
				dfunc();
		}, 1000);
	}
	
	$.Dodem={};
	function showMaskInfo(){
	 
	      //只有操作时长 大于 300ms 的才显示 加载mask
	     $.Dodem.show=1;
	     // window.log("\n time","begin");
	      
		 setTimeout( function(){
	 
			 if(  $.Dodem.show==1)
				 $(".maskInfo").css("display","flex");
			 
	     // window.log("time out", $.Dodem.show)
		 },300);
 
	}
	function hideMaskInfo(){
		
	 
	
		
		 $.Dodem.show=0;
		 //window.log("time end", $.Dodem.show)
		 
		 
		$(".maskInfo").css("display","none");
	}
	
	
	
</script>